home *** CD-ROM | disk | FTP | other *** search
- Path: lrz-muenchen.de!news
- From: watzka@stat.uni-muenchen.de (Kurt Watzka)
- Newsgroups: comp.lang.c
- Subject: Re: I need random number function that returns a number between x and i ?
- Date: 7 Apr 1996 08:54:17 GMT
- Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
- Distribution: world
- Message-ID: <4k7vrp$bg@sparcserver.lrz-muenchen.de>
- References: <3166C942.2D8@ccis.com>
- NNTP-Posting-Host: sun2.lrz-muenchen.de
-
- Bill Lund <wlund@ccis.com> writes:
-
- >I need random number function that returns a number between x and i ?
- >Something like :
- >int randomer(int x , int i).
-
- >And returns a random number between x and i.
-
- >Please help.
-
- The FAQ explains how to get random ints between 0 and n in detail.
- The neccesary transformation should be obvious (It's not higher math,
- some adding will do nicely)
-
- Kurt
- --
- | Kurt Watzka Phone : +49-89-2180-6254
- | watzka@stat.uni-muenchen.de
-